/**
 * 
 */
package bai9.com.server;

import static org.junit.Assert.*;

import java.rmi.RemoteException;

import org.junit.Test;

/**
 * @author nglehien Oct 22, 2012 - 10:36:13 PM
 */
public class TestCase {

	@Test
	public void test() throws RemoteException {
		StringHandleServer handleServer = new StringHandleServer();
		String expect = "Cong hello hoa xa hoi chu nghia viet nam";
		handleServer.insertBefore("hoa xa", "hello");
		String result = handleServer.getString();
		System.out.println(result);
		assertEquals(expect, result);
	}
}
